{--db_fetchrow table="ads" items="*" condition="f_id='$adId'" varname="adInfo"--}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<script type="text/javascript" src="../common/common.js"></script>
<link href="common/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="formAdd" name="formAdd" method="get" action="" onSubmit="return notEmpty(name, '请输入广告位。')">
<table border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td colspan="2" class="borderBottom"><span class="fontBold">编辑广告位</span></td>
    </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>广告位：</td>
    <td>
      <input name="name" type="text" id="name" value="{--$adInfo.f_name--}" size="70" maxlength="255" />
      <span class="fontRed">*</span> (如：首页顶部通栏，980x60)   </td>
    </tr>
  <tr>
    <td valign="top">广告代码：</td>
    <td>
      <textarea name="code" id="code" cols="90" rows="15">{--$adInfo.f_code--}</textarea>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <input name="aId" type="hidden" id="aId" value="{--$adInfo.f_id--}"/>
      <input type="hidden" name="back" value="{--$backUrl--}"/>
      <input type="submit" name="btnSubmit" id="btnSubmit" value=" 提交 " />
      <input type="reset" name="btnReset" id="btnReset" value=" 重置 " />
    </td>
  </tr>
</table>
</form>
<table border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td height="50">&nbsp;</td>
    <td><a name="invoke" id="invoke"></a></td>
  </tr>
  <tr>
    <td>调用代码：</td>
    <td>
      <p>在模板的相应位置插入以下调用代码，然后重新生成HTML即可。系统会将调用代码替换成上面的实际广告代码。</p>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <script type="text/javascript">document.write('<textarea name="invokeCode" id="invokeCode" cols="90" rows="5">{' + '--db_fetchrow table="ads" items="f_code" condition="f_id=\'{--$adInfo.f_id--}\'" varname="adInfo"--' + '}\n{' + '--$adInfo.f_code--' + '}</textarea>');</script>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>